package com.my.library.service.impl;

import java.util.Set;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.my.library.dao.impl.BookDAO;
import com.my.library.entity.Role;

@Service("bookServiceImpl")
public class BookServiceImpl {
	
	Logger log = Logger.getLogger(this.getClass());
	
	@Resource
	private BookDAO bookDAO;

	public String getData(Set<Role> roles, int appId) {
		return bookDAO.getData(roles, appId);
	}

	public void delete(int id) {
		bookDAO.delete(id);
	}

	public Object add(Set<Role> roles) {
		return bookDAO.add(roles);
	}

	
}
